package work728.work5;

public abstract class Animal {
  private  String name;
  private  int legNum;

  public Animal() {
  }

  public Animal(String name, int legNum) {
    this.name = name;
    this.legNum = legNum;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getLegNum() {
    return legNum;
  }

  public void shout(){}

}
